package cn.avalon.controller;

import cn.avalon.domain.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description: User接口
 * @author: Avalon
 * @date: 2022年09月17日 ： 23:04
 * @version: ver1.0
 * @email 709785494@qq.com
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @GetMapping("/{id}")
    public User fingByid(@PathVariable("id") Long id) {

        return new User(id, "Avalon", "洛奇英雄传");
    }
}
